// src/composables/useIpc.ts
import { getCurrentInstance } from 'vue'

export function useIpc() {
  const instance = getCurrentInstance()
  if (!instance) throw new Error('useIpc must be called inside setup()')
  return instance.proxy!.$ipc
}
